<?php
require_once 'models/acl.inc';

/**
 * @author dkrasilnikov@gmail.com
 * @property string $LoginUrl
 */
class TMSAccessDeniedPage extends TIntrinsicAccessDeniedPage {
	public function __get($nm){
		switch ($nm){
			case 'LoginUrl':{
				if (!($this->Service()->Acl->CurrentUser() instanceof TMSUser))
					return $this->service->Url('login');
				return null;	
			}break;
			default:return parent::__get($nm);break;
		}
	}
}
